﻿/* -- Copyright © Microsoft Corporation. All rights reserved. */
#downloadContainer
{
    display: -ms-grid;
    margin: 0px 8px 8px 8px;
}

#downloadIcon
{
    -ms-grid-column: 1;
    -ms-grid-row-span: 3;
    width: 62px;
    height: 62px;
    margin: 0px 16px 0px 0px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-image: url("../images/SauceCaramel.png");
    background-position: center top;
    background-origin: border-box;
    background-size: 64px 64px;
    background-repeat: no-repeat;
}

#downloadTitle
{
    -ms-grid-column: 2;
    -ms-grid-row: 1;
    font-size: 11pt;
    line-height: 15pt;
    font-family: "Segoe UI Semibold";
    white-space: nowrap;
    overflow-x: hidden;
    -ms-text-overflow: ellipsis;
}

#downloadControl
{
    -ms-grid-column: 2;
    -ms-grid-row: 2;
    display: -ms-flexbox;
    -ms-flex-align: center;
    height: 22px;
}

#downloadStatus
{
    -ms-grid-column: 2;
    -ms-grid-row: 3;
    font-size: 11pt;
    line-height: 15pt;
    font-family: "Segoe UI Semilight";
}

#downloadProgress
{
    width: 192px;
}

/* animation when pausing a determinate progress bar */
@keyframes progress-fade-out {
    from {
        opacity: 1.0;
    }
    to {
        opacity: 0.5;
    }
}

progress.paused:not(:indeterminate) {
    animation-name: progress-fade-out;
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.03, 0.76, 0.31, 1.0);
    opacity: 0.5;
}

/* fade-in animation when switching from indeterminate progress bar to determinate progress bar */
@keyframes progress-switch-determinate {
    from {
        opacity: 0.0;
    }
    to {
        opacity: 1.0;
    }
}

progress.switchDeterminate
{
    animation-name: progress-switch-determinate;
    animation-duration: 0.4s;
    animation-timing-function: linear;
}

#downloadPauseButton
{
    /* most styles are from .backbutton class */
    width: 20px;
    height: 20px;
    margin: 0px 8px 0px 12px;
    border-width: 1px;
    font-size: 10px;    /* override the style from .backbutton to set the size of the glyph */
    line-height: 18px;  /* override this from backbutton to match the current content box height, otherwise glyph won't center vertically. */
    visibility: hidden; /* hidden at the beginning because it's connecting to the server at the beginning and that activity can't be paused/resumed. */
}

button#downloadPauseButton.paused:before
{
    content: "\E102";       /* continue glyph */
}

button#downloadPauseButton.downloading:before
{
    content: "\E103";       /* pause glyph */
}

.backbutton
{
    display: inline-block;
    min-width: 0px;
    min-height: 0px;
    background-clip: border-box;
    box-sizing: border-box;
    border-radius: 50%;
    border-width: 2px;
    border-style: solid;
    padding: 0px;
    text-align: center;

    width: 41px;
    height: 41px;
    font-size: 14pt;
    line-height: 37px; /* line-height must match the content box height. */
    vertical-align: baseline;
    
    margin-right: 10px;
}

.backbutton:hover, .backbutton:hover:active
{
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
}

.backbutton::before
{
    font-family: "Segoe UI Symbol";
    font-weight: normal;
    content: "\E0D5";
    vertical-align: 50%;
}

.backbutton:disabled, .backbutton:hover:active:disabled
{
    background-clip: padding-box;
    visibility: hidden;
}

.backbutton
{
    background-color: transparent;
    border-color: rgb(0, 0, 0);
    color: rgb(0, 0, 0);
}

.backbutton:hover
{
    background-color: rgba(0, 0, 0, 0.13);
    border-color: rgb(0, 0, 0);
}

.backbutton:hover:active
{
    background-color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.backbutton:disabled, .backbutton:disabled:active
{
    background-color: transparent;
    border-color: rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.4);
}